<template>
  <BScroll ref="bscroll">
    <div>
      <cart-list-item v-for="item in getCartList" :key="item.iid" :item-info="item"></cart-list-item>
    </div>
  </BScroll>
</template>

<script>
import BScroll from 'components/common/bscroll/BScroll'

import CartListItem from './CartListItem'

export default {
  name: 'CartList',
  components: {
    BScroll, CartListItem
  },
  props: {
    getCartList: {
      type: Array,
      default () {
        return []
      }
    }
  },
  activated () {
    this.$nextTick(() => {
      this.refresh()
    })
  },
  methods: {
    refresh () {
      this.$refs.bscroll.refresh()
    }
  }
}
</script>

<style scoped>

</style>
